package router

import (
	"cargo-perm/handler"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("/Login", handler.Login)
	r.POST("/RoleNodeAdd", handler.RoleNodeAdd)
	r.POST("/UserRoleAdd", handler.UserRoleAdd)
	r.GET("/UserRoleList", handler.UserRoleList)
	r.GET("/RoleNodeList", handler.RoleNodeList)
	return r
}
